<?php

namespace app\common\model;

/**
 * [智慧寺院入驻操作记录信息]
 * @author [C。]
 * @return html
 */
class ZhCheckinLog extends Base
{
    protected $name = 'zh_checkin_log';
    /**
     * 根据搜索条件获取寺院列表信息
     */
    public function getFindOne($map,$field = '*')
    {
        $result =  $this->field($field)->order(['id' => 'desc'])->where($map)->find();
        return $result;
    }
    /**
     * 根据条件修改内容
     */
    public function editStatus($map)
    {
        $result =  $this->where($map)->update(['status'=>0]);
        return $result;
    }
}